<?php decorate_with(false) ?>
<?php use_helper('Date') ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>世界名模大赛 - 官方网站</title>
<meta name="description" content="2010 世界名模大赛-QQ炫舞天使评选-官方网站" />
<meta name="keywords" content="2010,世界名模大赛,QQ炫舞天使评选,世界模特大赛,世界名模大赛官方网站" />
<link href="/css/master.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/scroll_jiali.js"></script>
<script type="text/javascript" src="/js/marquee_jiali.js"></script>
<script type="text/javascript">	
	$(function(){
		//一次横向滚动一个
		$('#marquee1').kxbdSuperMarquee({
			distance:143,//滚动的宽度设置
			time:3,
			btnGo:{left:'#goL',right:'#goR'},
			direction:'left'
		});
	});
</script>

<script type="text/javascript">
var now = new Date();
function GetServerTime()
{
  var urodz = new Date("12/12/2010 15:00:00");
  now.setTime(now.getTime()+250);
  days = (urodz - now) / 1000 / 60 / 60 / 24;
  daysRound = Math.floor(days);
  hours = (urodz - now) / 1000 / 60 / 60 - (24 * daysRound);
  hoursRound = Math.floor(hours);
  minutes = (urodz - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
  minutesRound = Math.floor(minutes);
  seconds = (urodz - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
  secondsRound = Math.round(seconds);
  document.getElementById("date").innerHTML = daysRound + "天";
  document.getElementById("time").innerHTML = hoursRound + "小时" + minutesRound + "分" + secondsRound + "秒";
}
setInterval("GetServerTime()",250);
</script>
</head>
<body>
<!--Head-->
<div class="head_main">
  <div class="head_main2">
    <h1><a href="<?php echo url_for('@homepage') ?>" target="_self"  class="head_main2_a">世界名模大赛</a></h1>
    <div class="head_dl"><?php if ($sf_user->isAuthenticated()): ?>
      <a href="<?php echo url_for('@application_edit?id=' . $sf_user->getAttribute('id')) ?>">选手中心</a>
      |
      <a href="<?php echo url_for('@session_destroy?id=' . $sf_user->getAttribute('id')) ?>">退出</a>
      <?php else: ?>
        <a href="<?php echo url_for('@session_new') ?>">登录选手中心</a>
      <?php endif ?>
    </div>
  </div>
</div>
<div class="menu">
    <div style="font-family:'microsoft yahei'; font-size:14px; color:#FFF; text-align:right; line-height:36px; padding-right:10px; float:right;">
      距离世界名模大赛总决赛，还有
      <span id="date"></span><span id="time"></span>
    </div>
    <ul class="clearfix">
      <li>选择赛区：</li>
      <?php foreach ($areas as $area): ?>
      <li>
        <a href="<?php echo url_for('@area?area=' . $area->getSlug()) ?>" target="_self"><?php echo $area ?>赛区</a>
      </li>
      <?php endforeach ?>
    </ul>
    <div class="clears"></div>
</div>

<!--Content-->
<div class="cont_main1">
   <div class="cont_main1_left"><img src="/images/foucs-2.jpg" width="690" height="360" alt="世界名模大赛" /></div>
   <div class="cont_main1_right">
      <div class="cont_main1_right_div1">
         <span>大赛简介：</span>
         <p>世界名模大赛始于2009年在世界名模协会（简称华文：世模协，英文：WMA）的大力支持下2010年成立...<a href="/html/about_us.html" target="_self">[详细]</a></p>
      </div>
      <div class="cont_main1_right_div1 fj_boder">
         <span>报名时间：</span>
         <p>报名期：2010年11月01日-12月01日</p>
         <p>集训期：2010年12月09日-12月11日</p>
         <p>总决赛：2010年12月12日
      </div>
      <div class="cont_main1_right_div2">
         <span>组织机构：</span>
         <p>主办：世界名模协会</p>
         <p>承办：北京光大印象国际广告有限公司</p>
         <p>战略合作：腾讯网 <a href="/html/about_us.html" target="_self">[详细]</a></p>
      </div>
   </div>
   <div class="clears"></div>
</div>

<!--Content 2-->
<div class="cont_main2">

   <div class="cont_main2_left1">
      <div class="cont_main2_left1_top"><span class="ft9">大赛动态</span><span class="ft1"><a href="<?php echo url_for('@article') ?>">更多 >></a></span></div>
      <div class="cont_main2_left1_bottom">
        <ul>
        <?php foreach ($texts as $text): ?>
          <li><span class="ft2"><?php echo format_date($text->getCreatedAt(), 'y/M/d'); ?></span><a href="<?php echo $text->getLink() ?>"><?php echo $text->getText() ?></a></li>
        <?php endforeach ?>
        </ul>
      </div>
      <div class="cont_main2_left1_bottom_bg"><img src="images/lan_down.gif" width="340" height="7" alt="" /></div>
   </div>

   <div class="cont_main2_left1">
      <div class="cont_main2_left1_top"><span class="ft99">组委会动态</span><span class="ft1"><a href="<?php echo url_for('@article') ?>">更多 >></a></span></div>
      <div class="cont_main2_left1_bottom">
        <ul>
		<?php foreach ($texts2 as $text): ?>
            <li><span class="ft2"><?php echo format_date($text->getCreatedAt(), 'y/M/d'); ?></span><a href="<?php echo $text->getLink() ?>"><?php echo $text->getText() ?></a></li>
		<?php endforeach ?>
         </ul>
      </div>
      <div class="cont_main2_left1_bottom_bg"><img src="images/lan_down.gif" width="340" height="7" alt="" /></div>
   </div>

   <div class="cont_main2_right">
      <div><a href="<?php echo url_for('@application_license') ?>"><img src="/images/baoming.jpg" width="245" height="83" alt="参加报名" /></a></div>
      <div class="cont_main2_right_div"><a href="/html/Investment_plan.html"><img src="/images/zhaoshang.jpg" width="245" height="103" alt="招商方案" /></a></div>
   </div>
   
   <div class="clears"></div>
</div>

<!--Content 3-->
<div class="cont_main3">
   <div class="cont_main3_top"><span class="ft8"><span class="ft9">参赛佳丽</span></span></div>
   <div class="cont_main3_bottom">
      <div class="pre"><a href="javascript:void(0);" id="goL"></a></div>
      <div class="next"><a href="javascript:void(0);" id="goR"></a></div>
      <div class="girl_main" id="marquee1"> 
         <ul>

		 <?php foreach ($images as $image): ?>
            <li>
			<a href="<?php echo url_for('@contestant_show?id=' . $image->getContestant()->getId() . '&area=' . $image->getContestant()->getArea()->getSlug()) ?>" target="_blank">
			<img src="<?php 
                  printf(
                    sfConfig::get('app_path_contestant_portrait'), 
                    $image->getContestant()->getPortrait()
                  ) 
                ?>" width="123" height="182" alt="<?php echo $image->getContestant() ?>" />
			</a>
			<span class="ft3"><?php echo $image->getContestant()->getArea() ?>
                  <?php echo $image->getContestant() ?></span>
			</li>
         <?php endforeach ?>
         </ul>        
         <div class="clears"></div>
      </div>
   </div> 
   <div class="cont_main3_bg"><img src="/images/jiali_bottom.gif" alt="" /></div>
</div>

<!--Partenr-->
<div class="part_main">
   <div class="part_top"></div>
   <div class="part_bottom">
      <ul>
         <li><a href="http://www.qq.com/" target="_blank"><img src="/images/qq.gif" alt="腾讯网" /></a></li>
         <li><a href="http://x5.qq.com/" target="_blank"><img src="/images/qqxuanwu.gif" alt="QQ炫舞" /></a></li>
      </ul>
      <div class="clears"></div>
   </div>
</div>

<!--Foot-->
<div class="foot">
   <div class="foot_top"></div>
   <div class="foot_bottom">
      <p>
         <a href="/html/about_us.html">大赛简介</a><span>|</span>
         <a href="/html/sponsor.html">招商合作</a><span>|</span>
         <a href="/html/copyright.html">法律声明</a><span>|</span>
         <a href="/html/Contact_us.html">联系我们</a>
      </p>
      <p>Copyright &copy; 世界名模大赛 版权所有</p>
      <p><a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备10212324号</a></p>
   </div>
</div>

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16216214-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

<!--遮罩层-->
<div class="ts_zz"></div>

<!--提示层-->
<?php if ($sf_user->hasFlash('message')): ?>
<script type="text/javascript">
$(document).ready(function(){
  var a=0
  //隐藏弹出层
  $(".ts_close_btn").click(function(){
	 $(".ts,.ts_zz").hide();
  })
  
  //显示弹窗层
   $(".ts,.ts_zz").show();
   $(".ts_zz").css("height",$(document).height())
})
</script>
<div class="ts">
   <div class="ts_top">
   系统提示
   <div class="ts_close_btn"></div>
   </div>
   <div class="ts_bottom">
      <p><?php echo $sf_user->getFlash('message') ?></p>
   </div>
</div>
<?php endif ?>

  <?php if ($sf_request->getParameter('sf_warning')): ?>
    <?php echo $sf_request->getParameter('sf_warning') ?>
  <?php endif ?>

<!--在线QQ -->
<DIV id="STATICMENU" style="Z-INDEX:999; LEFT:0px; VISIBILITY: visible; POSITION: absolute; TOP:274px; HEIGHT: 203px">
  <table width="140" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="3" style="width:140px; height:35px; background-image:url(/images/QQ_3.jpg);"><div style="position:absolute; width:22px; height:21px; right:-25px; cursor:pointer; top:0px;" onClick="gogo();" title="关闭该窗口"></div></td>
    </tr>
    <tr>
      <td width="4" background="/images/QQ_8.gif"></td>
      <td width="122" align="center">
        <TABLE cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff">
          <TBODY>
            <TR>
              <TD width="40">客服01</TD>
              <TD width="82"><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=0f3639d531b2521d68cc882e1c7beca4a442e84bb81ac3161df5e78a813c505a"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=0f3639d531b2521d68cc882e1c7beca4a442e84bb81ac3161df5e78a813c505a';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img style="margin:2px 0 3px;" border="0" SRC='http://wpa.qq.com/pa?p=1:1554635567:42' alt="世模赛客服01"></a></TD>
            </TR>
            <TR>
              <TD>客服02</TD>
              <TD><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=6925f141e26d062497dc27dea482fe22b03accb09835b84f279f3d37486c1648"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=6925f141e26d062497dc27dea482fe22b03accb09835b84f279f3d37486c1648';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img style="margin:2px 0 3px;" border="0" SRC='http://wpa.qq.com/pa?p=1:1554635567:42' alt="世模赛客服02"></a></TD>
            </TR>
          </TBODY>
        </TABLE>
      </td>
      <td width="4" background="/images/QQ_7.gif"></td>
    </tr>
    <tr>
      <td colspan="3"><img src="/images/QQ_12.jpg" width="140" height="35"></td>
    </tr>
  </table>
<SCRIPT language="javascript">
<!--
var stmnGAP1=70;
var stmnGAP2=210;
var stmnBASE=70;
var stmnActivateSpeed=200;
var stmnScrollSpeed=10;
var stmnTimer;
function RefreshStaticMenu()
{
	var stmnStartPoint,stmnEndPoint,stmnRefreshTimer;	
	stmnStartPoint=parseInt(STATICMENU.style.top,10);	
	stmnEndPoint=document.documentElement.scrollTop+stmnGAP2;	
	if(stmnEndPoint<stmnGAP1)stmnEndPoint=stmnGAP1;	
	stmnRefreshTimer=stmnActivateSpeed;	
	if(stmnStartPoint!=stmnEndPoint){
		stmnScrollAmount=Math.ceil(Math.abs(stmnEndPoint-stmnStartPoint)/15);		
		STATICMENU.style.top=parseInt(STATICMENU.style.top,10)+((stmnEndPoint<stmnStartPoint)?-stmnScrollAmount:
		stmnScrollAmount);		
		stmnRefreshTimer=stmnScrollSpeed;		
	}
	stmnTimer=setTimeout("RefreshStaticMenu();",stmnRefreshTimer);	
}
STATICMENU.style.top=document.documentElement.scrollTop+stmnBASE;
RefreshStaticMenu();
//-->
</SCRIPT>
<SCRIPT language="javascript">
function gogo(){
	STATICMENU.style.display='none';	
}
</SCRIPT>
</DIV>
<!--在线QQ -->
  
</body>
</html>